<?php 
trait traitProperty{
    public $x=55;

}
class P{
    public $r=5;
    use traitProperty;
}
$dd=new P();
echo $dd->x;

